FUNCTION ADBGetDeviceData(requestCount: ItemCount; VAR totalCount: ItemCount; VAR deviceData: ADBIOIteratorData): OSStatus; C;
FUNCTION ADBOpen({CONST}VAR ref: IODeviceRef; VAR connection: ADBConnectionID): OSStatus; C;
FUNCTION ADBClose(connection: ADBConnectionID): OSStatus; C;
FUNCTION ADBGetNextAutopoll(connection: ADBConnectionID; timeOut: Duration; VAR contents: ADBRegisterContents; VAR timestamp: AbsoluteTime): OSStatus; C;
{ ADBGetRegister sends a Talk command over the wire }
FUNCTION ADBGetRegister(connection: ADBConnectionID; registerNumber: ByteParameter; VAR contents: ADBRegisterContents; VAR timestamp: AbsoluteTime): OSStatus; C;
{
ADBSetRegister sends a Listen command over the wire
Note, only allowed for registers 0, 1, and 2
Use the specific calls to set individual fields of register 3
}
FUNCTION ADBSetRegister(connection: ADBConnectionID; registerNumber: ByteParameter; {CONST}VAR contents: ADBRegisterContents): OSStatus; C;
FUNCTION ADBGetHandlerID(connection: ADBConnectionID; VAR handlerID: Byte): OSStatus; C;
FUNCTION ADBSetHandlerID(connection: ADBConnectionID; handlerID: ByteParameter): OSStatus; C;
{
for ADBGetStatusBits and ADBSetStatusBits,
the 4 most significant bits of the bits parameter
contain the 4 most significant bits of the first byte of device register 3
}
FUNCTION ADBGetStatusBits(connection: ADBConnectionID; VAR bits: Byte): OSStatus; C;
FUNCTION ADBSetStatusBits(connection: ADBConnectionID; bits: ByteParameter): OSStatus; C;
{ see the Guide to Macintosh Family Hardware for more info on an ADB device activator }
FUNCTION ADBTestActivator(connection: ADBConnectionID; VAR activatorPressed: BOOLEAN): OSStatus; C;
FUNCTION ADBFlush(connection: ADBConnectionID): OSStatus; C;